﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="XmlDataSourceTest.aspx.cs" Inherits="SCS.Web.UI.WebControls.Test.XmlDataSourceTest" %>

<%@ Register assembly="SCS.HierList" namespace="SCS.Web.UI.WebControls" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div>
            <div style="float:right;"><asp:HyperLink ID="returnLink" runat="server" NavigateUrl="~/Default.aspx">Return</asp:HyperLink></div>

            <cc1:HierList ID="MediaOutline" runat="server" DataSourceID="xmlData" OnItemClicked="MediaOutline_ItemClicked">
                <DataBindings>                
                    <cc1:HierListItemBinding DataMember="Menu" TextField="text" NavigateUrlField="url" />
                    <cc1:HierListItemBinding DataMember="SubMenu" NavigateUrlField="url" TextField="text" ValueField="value" />
                </DataBindings>
            </cc1:HierList>

            <asp:XmlDataSource ID="xmlData" EnableCaching="false" DataFile="~/Resources/Media.xml" runat="server"  />

            <div>
                <asp:Label ID="valueLabel" runat="server" Text="Selected Value:" /> <asp:Label ID="valueTextLabel" runat="server" Text="" /> 
            </div>
        </div>
    </form>
</body>
</html>
